<?php

use app\middleware\OpenMiddler;
use think\facade\Route;

Route::group("open", function () {
    Route::get("auth/token", "open.Auth/token");
    Route::get("auth/refresh", "open.Auth/refresh");
    Route::group("v1",function (){
        Route::get("station/list","open.Station/lst");
        Route::post("payment/discount","open.Payment/discount");
        Route::post("payment/create","open.Payment/create");
        Route::post("payment/submit","open.Payment/submit");
        Route::post("payment/refund","open.Payment/refund");
        Route::get("payment/detail","open.Payment/detail");
    });
})->middleware([OpenMiddler::class,\app\middleware\CrossDomain::class]);
